package com.zxn.dorm.view.adapter;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zxn.dorm.R;
import com.zxn.dorm.entity.MemberBeanInfo;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by zxn on 2019/6/4.
 */
public class MemberManageAdapter extends BaseQuickAdapter<MemberBeanInfo, MemberManageAdapter.MemberManageVH> {
    public MemberManageAdapter() {
        super(R.layout.item_member_manage);
    }

    @Override
    protected void convert(MemberManageVH helper, MemberBeanInfo item) {
        helper.tvMemberName.setText(item.memberName);
        helper.tvMobile.setText(item.mobile);
        helper.tvTotalBalancePoint.setText("男"+"170cm");

    }

    static class MemberManageVH extends BaseViewHolder {
        @BindView(R.id.iv_head_img_url)
        ImageView ivHeadImgUrl;
        @BindView(R.id.tv_member_name)
        TextView tvMemberName;
        @BindView(R.id.tv_mobile)
        TextView tvMobile;
        @BindView(R.id.tv_total_balance_point)
        TextView tvTotalBalancePoint;
        @BindView(R.id.iv_birthday)
        ImageView ivBirthday;

        MemberManageVH(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }

}
